﻿@using WaterRegimenMonitor.Common;
@using WaterRegimenMonitor.Web.Code;
@using WaterRegimenMonitor.Web.Domain;
@{
    //获得当前动作地址
    string actionUrl = UIHelper.GetCurrentActionUrl(this);

    //生成菜单模型
    List<string> menuModels = MenuHelper.BuildRenderModel();
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title>@ViewBag.Title</title>
    <link type="text/css" rel="stylesheet" href="@Url.Content("~/Content/Styles/Layout.css")" media="all">
    <link type="text/css" rel="stylesheet" href="@Url.Content("~/Content/Styles/Site.css")" media="all">
    <link href="@Url.Content("~/Scripts/ExtJS/resources/css/ext-all-gray.css")" rel="stylesheet" type="text/css" />
    @RenderSection("HeadCssLink", false)
    <script src="@Url.Content("~/Scripts/JQuery/jquery-1.6.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/ExtJS/bootstrap.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Business/Main/Index.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Business/Shared/Menu.js")" type="text/javascript"></script>
    @RenderSection("HeadScriptLink", false)
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script type="text/javascript" language="javascript">

        //渲染表格只读复选框
        function renderGridReadonlyCheckBox( val )
        {
            //判断是否选中
            if ( val )
            {
                return '<img src="@Url.Content("~/Content/Images/checkbox_checked.png")" style=" width:13px; height:13px;"/>';
            }
            else
            {
                return '<img src="@Url.Content("~/Content/Images/checkbox_unchecked.png")" style=" width:13px; height:13px;"/>';
            }
        }

        //生成菜单模型
        var model_menus =
        [
            @Html.Raw(System.String.Join(",", menuModels))
        ];

        //动作路径根路径
        var ActionUrlRoot = '@Url.Action("Index")';
        //当前动作路径
        var _Current_ActionUrl = '@Html.Raw(actionUrl)';
        //主机地址
        var HostUrl = '';
    </script>
</head>
<body>
    <div>
        <header>
            <a href="@Url.Action("Index", "Home")" >
                <div id="logo">&nbsp;</div>
            </a>
            <div style="float:right;overflow-y:hidden;overflow-x:visible">
               <div id="login_menu">
                    <ul>
                        <li>|</li><li><a href="@Url.Action("ChangePassword", "Login")">修改密码</a></li>
                        <li>|</li><li><a href="@Url.Action("Logout", "Home")">退出</a></li>
                    </ul>
                </div>
            </div >
        </header>
        <div id="main_content" class="Main_Content">
            <div id="topBarPlace">
            </div>
            <div id="side_menu" class="Side_Menu">
            </div>
            <div id="body_content" class="Body_Content">
                @RenderBody()
            </div>
            <div id="footer_content" class="Footer_Content">
                <footer>
                    <ul>
                        <li>XXXXXXXX &copy;  版权所有.</li>
                    </ul>
                </footer>
            </div>
        </div>
    </div>
</body>
</html>
